﻿@model System.Data.DataTable
@using EraNet.Core;
@using EraNet.InfoSys;
@using EraNet.InfoSys.Extensions;
@using EraNet.Core.Model.Account;
@using EraNet.InfoSys.Models.Common;
@using EraNet.Core.Model.Test;
@using EraNet.Core.Model.SysManage;
@{
    Layout = "~/Areas/IMS/Views/Shared/_LayOut.cshtml";
}

@section javascript
{
}

<div class="wrapper">
<!-- Left column/section -->
<div class="column width6 first" style="display:inline">									
<div class="box box-info">卡片使用详情，未使用的卡片，可以在学员列表中分配给学员！</div>
@using (Html.BeginForm())
{
<div class="operbox">卡号：<input type="text" id="cardNo" name="cardNo" /><input id="btnSeach" type="submit" value="查询" /></div>
}
<table class="display stylized" id="example">
<thead>
<tr>
<th>卡号</th>
<th>使用人</th>
<th>身份证</th>
<th>激活时间</th>
</tr>
</thead>
<tbody>
@for (int i = 0; i < Model.Rows.Count;i++ )
{
    var item = Model.Rows[i];
    
<tr class="gradeX">
<td>@((Convert.IsDBNull(item["cardMarkstr"]) ? Html.Raw("--") : item["cardMarkstr"]).ToString() + (Convert.IsDBNull(item["cardNo"]) ? Html.Raw("--") : item["cardNo"]))</td>
<td>@(Convert.IsDBNull(item["memberName"]) ? Html.Raw("--") : item["memberName"])</td>
<td>@(Convert.IsDBNull(item["idCard"]) ? Html.Raw("--") : item["idCard"])</td>
<td>@(Convert.IsDBNull(item["cardActiveDate"]) ? Html.Raw("--") : item["cardActiveDate"])</td>
</tr>
}

<tr>
    <td colspan="4" >
    <div id="page">
    <div class="pagecss">@{
    var pager = @Html.Pager(new PagerModel()
    {
        PageSize = (int)ViewData["PageSize"],
        TotalRecords = (int)ViewData["TotalCount"],
        PageIndex = (int)ViewData["PageIndex"],
        ShowTotalSummary = false,
        RouteActionName = "IMS_CardManagerRoute",
        UseRouteLinks = true,
        RouteValues = new RouteValues { page = 2 }
    });
}
@pager</div>
</div>
</td>
</tr>
</table>				
<div class="clear">&nbsp;</div>
</div>

@Html.Action("_RightNav","Common")
<!-- End of Right column/section -->
</div>
